import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';

import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { LoginPage } from '../pages/login/login';
import { RegistPage } from '../pages/regist/regist';
import { PeopleDetailPage } from '../pages/people-detail/people-detail';
import { PeopleListPage } from '../pages/people-list/people-list';

import { HttpModule } from '@angular/http';

import { PeopleService } from './people.service'

// import { HttpParams } from '@angular/common';

@NgModule({
  declarations: [
    MyApp,
    HomePage,
    LoginPage,
    RegistPage,
    PeopleDetailPage,
    PeopleListPage,
  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp),
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    LoginPage,
    RegistPage,
    PeopleDetailPage,
    PeopleListPage,
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    PeopleService,
    // MyApp,
  ]
})
export class AppModule {}
